package com.kittlen.managementSystem.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableField;
import java.io.Serializable;
import java.util.List;

import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 公告表
 * </p>
 *
 * @author kittlen
 * @since 2021-01-26
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("t_notice")
public class Notice implements Serializable {

    private static final long serialVersionUID = 1L;

    public Notice(String noticeId) {
        this.noticeId = noticeId;
    }

    public Notice() {
    }

    /**
     * 公告id
     */
    @TableId(value = "notice_id", type = IdType.INPUT)
    private String noticeId;

    /**
     * 标题
     */
    private String title;

    /**
     * 内容
     */
    private String content;

    /**
     * 公告类型(0:普通公告,1:轮播公告)
     */
    private Integer noticeType;

    /**
     * 轮播公告对应的展示照片
     */
    private String noticeImg;

    /**
     * 发布者
     */
    private Admin admin;

    /**
     * 发布时间
     */
    private String createDate;

    /**
     * 是否显示(轮播)
     */
    private boolean isShow;

    public class CarouselsUpdate{
        private List<String> oldNoticeId;
        private List<String> newNoticeId;

        public List<String> getOldNoticeId() {
            return oldNoticeId;
        }

        public void setOldNoticeId(List<String> oldNoticeId) {
            this.oldNoticeId = oldNoticeId;
        }

        public List<String> getNewNoticeId() {
            return newNoticeId;
        }

        public void setNewNoticeId(List<String> newNoticeId) {
            this.newNoticeId = newNoticeId;
        }
    }


}
